package com.lanou.service;

import com.github.pagehelper.PageInfo;
import com.lanou.bean.Role;

import java.util.List;

/**
 * Created by dllo on 18/3/12.
 */
public interface RoleService {

    List<Role> role(String username);

    List<Role> allRole();

    void addrole(String name, List<Integer> modules);

    void updata(Integer roleId,String name,List<Integer> modules);

    /**
     * 分页
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<Role> queryRoleByPage(Integer pageNo, Integer pageSize);

    void delete(Integer roleId);

}
